package com.pm.mapper.awardPunishment;

import com.pm.entity.po.awardPunishment.AwardPunishment;
import com.pm.entity.po.ledger.DataAnalysisTaskPo;
import com.pm.entity.vo.TaskCompletionChildVo;
import com.pm.entity.vo.ledger.DataAnalysisVo;
import com.pm.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AwardPunishmentMapper extends BaseMapper<AwardPunishment> {
    List<AwardPunishment> getAllAward(@Param("awardPunishment") AwardPunishment awardPunishment);

    Integer addAward(@Param("awardPunishment") AwardPunishment awardPunishment);

    Boolean updateAward(@Param("awardPunishment") AwardPunishment awardPunishment);

    Boolean deleteAward(Integer id);

    Double plus(TaskCompletionChildVo TaskCompletionChildVo1);

    Double reduce(TaskCompletionChildVo TaskCompletionChildVo1);

    AwardPunishment getAwardId(Integer id);

    Double getTaskPlus(DataAnalysisVo dataAnalysisVo);

    Double getTaskReduce(DataAnalysisVo dataAnalysisVo);

    List<DataAnalysisTaskPo> getAnalysisTaskPlus();

    List<DataAnalysisTaskPo> getAnalysisTaskReduce();
}